package com.teste.client.editors;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class Body extends Composite {

	private static BodyUiBinder uiBinder = GWT.create(BodyUiBinder.class);

	interface BodyUiBinder extends UiBinder<Widget, Body> {
	}

	private AbsolutePanel panel;

	public Body() {
		initWidget(panel = (AbsolutePanel) uiBinder.createAndBindUi(this));
	}
	
	public void changeWidget(Widget w) {
		panel.clear();
		panel.add(w);
	}

}
